<template>
	<view class="equip">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<view class="content1" v-if="this.current==0">
			<view class="image" v-for="(item,index) in goods" :key="index">
				<image :src="item.image" mode=""></image>
				<view class="title">
					{{item.title}}
				</view>
				<view class="price">
					{{item.price}}
				</view>
			</view>
		</view>
		<view class="" v-if="this.current==1">
			<view class="no">
				<image src="../../static/img/space.png" mode=""></image>
				<view class="xiaoxi">
					亲，暂无数据哦~
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				list: [{
					name: '装备'
				}, {
					name: '我的'
				}],
				current: 0,
				loadStatus: 'loadmore',
				goods:[
					{image:'../../static/img/goods.png',title:"骑手头盔",price:9.90},
					{image:'../../static/img/goods.png',title:"骑手头盔",price:9.90},
					{image:'../../static/img/goods.png',title:"骑手头盔",price:9.90},
					{image:'../../static/img/goods.png',title:"骑手头盔",price:9.90},
				],
			}
		},
		methods:{
			change(index) {
				this.current = index;
			},
		}
	}
</script>

<style scoped>
	.equip{
		background: rgb(238,238,238);
		height: 1250rpx;
	}
	.image{
		background-color: #FFFFFF;
		    margin: 2% 1%;
		    margin-left: 2%;

	}
	.image image{
		width: 350rpx;
		height: 280rpx;
	}
	.content1{
		    padding: 20rpx 0rpx;
		display: flex;
		flex-wrap:wrap;
	}
	.title{
		padding-top: 4rpx;
		padding-left: 20rpx;
	}
	.price{
		color: red;
		font-weight: 600;
		padding-left: 20rpx;
	}
	.no{
		display: flex;
		flex-direction: column;
		align-content: center;
		align-items: center;
		padding-top: 50%;
	}
	.no image{
		width: 300rpx;
		height: 200rpx;
	}
	.no view{
		color: rgb(153,153,153);
		padding-top: 30rpx;
	}
</style>
